package com.xul.movie.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xul.movie.dao.MovieMapperDao;
import com.xul.movie.domain.Movie;
import com.xul.movie.service.MovieService;

@Service
public class MovieServiceImpl implements MovieService{

	@Resource
	private MovieMapperDao movieMapperDao;
	
	@Override
	public List<Movie> findMovieList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return movieMapperDao.findMovieList(map);
	}

	@Override
	public int addMovie(Movie movie) {
		// TODO Auto-generated method stub
		return movieMapperDao.addMovie(movie);
	}

	@Override
	public int deleteMovie(Movie movie) {
		// TODO Auto-generated method stub
		return movieMapperDao.deleteMovie(movie);
	}

	@Override
	public Movie findMovieByMid(Movie movie) {
		// TODO Auto-generated method stub
		return movieMapperDao.findMovieByMid(movie);
	}

	@Override
	public int updateMovie(Movie movie) {
		// TODO Auto-generated method stub
		return movieMapperDao.updateMovie(movie);
	}

	@Override
	public int deleteAll(int[] ck) {
		// TODO Auto-generated method stub
		return movieMapperDao.deleteAll(ck);
	}

	@Override
	public Movie findMovieLook(int mid) {
		// TODO Auto-generated method stub
		return movieMapperDao.findMovieLook(mid);
	}

	
	
}
